﻿namespace Forms
{
    using Forms.My;

    using Microsoft.VisualBasic.CompilerServices;

    using System;
    using System.Collections;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class frmDebugDataSet : Form
    {
        [AccessedThroughProperty("cbxTables")]
        private ToolStripComboBox _cbxTables;
        [AccessedThroughProperty("DataGridView1")]
        private DataGridView _DataGridView1;
        [AccessedThroughProperty("ToolStrip1")]
        private ToolStrip _ToolStrip1;
       

        public frmDebugDataSet()
        {
            base.Load += new EventHandler(this.frmDebuDataSet_Load);
            this.InitializeComponent();
            this.WindowState = FormWindowState.Maximized;
        }

        private void cbxTables_SelectedIndexChanged(object sender, EventArgs e)
        {
            IEnumerator enumerator = this.DataGridView1.Columns.GetEnumerator();
            this.DataGridView1.DataSource = RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(MyProject.Forms.Main.cs.dsBMW.Tables, null, "Item", new object[] { RuntimeHelpers.GetObjectValue(this.cbxTables.SelectedItem) }, null, null, null));
            try
            {
                
                while (enumerator.MoveNext())
                {
                    DataGridViewColumn current = (DataGridViewColumn) enumerator.Current;
                    current.DefaultCellStyle.WrapMode = DataGridViewTriState.True;
                }
            }
            finally
            {
                if (enumerator is IDisposable)
                {
                    (enumerator as IDisposable).Dispose();
                }
            }
            this.DataGridView1.AutoResizeColumns();
            this.DataGridView1.AutoResizeRows();
        }

        private void frmDebuDataSet_Load(object sender, EventArgs e)
        {
            IEnumerator enumerator = MyProject.Forms.Main.cs.dsBMW.Tables.GetEnumerator();
            ArrayList list = new ArrayList();
            int num = -1;
            try
            {
                
                while (enumerator.MoveNext())
                {
                    DataTable current = (DataTable) enumerator.Current;
                    num++;
                    list.Add(current.TableName);
                }
            }
            finally
            {
                if (enumerator is IDisposable)
                {
                    (enumerator as IDisposable).Dispose();
                }
            }
            list.Sort();
            this.cbxTables.ComboBox.DataSource = list;
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            this.ToolStrip1 = new ToolStrip();
            this.cbxTables = new ToolStripComboBox();
            this.DataGridView1 = new DataGridView();
            this.ToolStrip1.SuspendLayout();
            ((ISupportInitialize) this.DataGridView1).BeginInit();
            this.SuspendLayout();
            this.ToolStrip1.Items.AddRange(new ToolStripItem[] { this.cbxTables });
            Point point = new Point(0, 0);
            this.ToolStrip1.Location = point;
            this.ToolStrip1.Name = "ToolStrip1";
            Size size = new Size(900, 0x19);
            this.ToolStrip1.Size = size;
            this.ToolStrip1.TabIndex = 1;
            this.ToolStrip1.Text = "ToolStrip1";
            this.cbxTables.Name = "cbxTables";
            size = new Size(300, 0x15);
            this.cbxTables.Size = size;
            this.DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.DataGridView1.Dock = DockStyle.Fill;
            point = new Point(0, 0x19);
            this.DataGridView1.Location = point;
            this.DataGridView1.Name = "DataGridView1";
            size = new Size(900, 0x1c6);
            this.DataGridView1.Size = size;
            this.DataGridView1.TabIndex = 2;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(900, 0x1df);
            this.ClientSize = size;
            this.Controls.Add(this.DataGridView1);
            this.Controls.Add(this.ToolStrip1);
            this.Name = "frmDebuDataSet";
            this.Text = "frmDebuDataSet";
            this.ToolStrip1.ResumeLayout(false);
            this.ToolStrip1.PerformLayout();
            ((ISupportInitialize) this.DataGridView1).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        internal virtual ToolStripComboBox cbxTables
        {
            [DebuggerNonUserCode]
            get
            {
                return this._cbxTables;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.cbxTables_SelectedIndexChanged);
                if (this._cbxTables != null)
                {
                    this._cbxTables.SelectedIndexChanged -= handler;
                }
                this._cbxTables = value;
                if (this._cbxTables != null)
                {
                    this._cbxTables.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual DataGridView DataGridView1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._DataGridView1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._DataGridView1 = value;
            }
        }

        internal virtual ToolStrip ToolStrip1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStrip1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStrip1 = value;
            }
        }
    }
}

